package StringUtils;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;

public class TestClient {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Socket s = null;
		PrintWriter out = null;
		FileInputStream fis = null;

		try {
			s = new Socket("127.0.0.1", 8888);
			BufferedReader in = new BufferedReader(new InputStreamReader(s
					.getInputStream()));
			String a = in.readLine();
			System.out.println(a);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			try {
				s.close();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}

	}

}
